import {ref,computed, reactive,toRaw} from 'vue'
import { defineStore } from 'pinia'

export const useUserStore = defineStore('counter',()=>{
	
	const user_info =reactive({})
	const app = getApp()
	const collect_id = ref([])
	function fillCollectId(res){
		collect_id.value =res
	}
	function addCollcetId(hid){
		collect_id.value.push(hid)
		console.log(collect_id.value)
	}
	function fillUser(res){
		user_info.value =res
	}
	
	return { collect_id,user_info,fillUser,fillCollectId,addCollcetId}
})